//package com.zhaopin.countdownlatch;
//
//import java.util.concurrent.CountDownLatch;
//import java.util.concurrent.Executor;
//
//import static org.apache.lucene.queryparser.surround.parser.QueryParserConstants.N;
//
///**
// * @author yin.peide
// * @date 2021-05-07 17:19
// */
//public class Driver2 {
//    void main() throws InterruptedException {
//        CountDownLatch doneSignal = new CountDownLatch(N);
//        Executor e =
//
//        for (int i = 0; i < N; ++i) // create and start threads
//            e.execute(new WorkerRunnable(doneSignal, i));
//
//        doneSignal.await();           // wait for all to finish
//    }
//}
